package com.wang.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单主表，当前表只保存流转中的订单信息
 * </p>
 *
 * @author mark
 * @since 2020-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TbOrder对象", description="订单主表，当前表只保存流转中的订单信息")
public class TbOrder implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "物理主键")
    @TableId(value = "sequence_nbr", type = IdType.AUTO)
    private Long sequenceNbr;

    @ApiModelProperty(value = "用户id")
    private String userNo;

    @ApiModelProperty(value = "订单的唯一编号")
    private String orderNo;

    @ApiModelProperty(value = "订单来源")
    private String source;

    @ApiModelProperty(value = "订单类型(商品，设计)")
    private String orderType;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Long createTime;

    @ApiModelProperty(value = "订单状态")
    private String orderStatus;

    @ApiModelProperty(value = "订单金额")
    private Integer orderAmount;

    @ApiModelProperty(value = "邮费")
    private Integer postage;

    @ApiModelProperty(value = "实际支付金额")
    private Integer payAmount;

    @ApiModelProperty(value = "折扣金额")
    private Integer discount;

    @ApiModelProperty(value = "优惠金额")
    private Integer coupon;

    @ApiModelProperty(value = "是否已评价")
    private String isComment;

    @ApiModelProperty(value = "发票信息")
    private String receiptDetail;

    @ApiModelProperty(value = "物流记录id")
    private Long transportId;

    @ApiModelProperty(value = "收货人手机号")
    private String receiverMobile;

    @ApiModelProperty(value = "收货人姓名")
    private String receiverName;

    @ApiModelProperty(value = "收货信息(json存储)")
    private String receiverAddress;

    @ApiModelProperty(value = "是否已拆单")
    private String isSplit;

    @ApiModelProperty(value = "数据状态 :i 非激活 /a  激活")
    private String recStatus;

    @ApiModelProperty(value = "取消订单理由")
    private String cancelResult;

    @ApiModelProperty(value = "审核不通过理由")
    private String checkFailResult;

    @ApiModelProperty(value = "处理订单跟进记录")
    private String orderRecode;

    @ApiModelProperty(value = "备注")
    private String description;


}
